home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-29 | 3.0 KB | 50 lines | [TEXT/KAHL] |
- /*****************************************************************************************************
- * *
- * FinderProgressBar.doc - Copyright 1993 Chris Larson (cklarson@engr.ucdavis.edu) All rights reserved*
- * *
- * Documentation file of a CDEF which mimics the progress bar used in the Finder. This source file *
- * and its compiled derivatives may be freely used within any freeware/shareware/postcardware/… as *
- * long as you mention my name in your credits. Neither this source nor its compiled derivatives are *
- * in the public domain and may not be use in any form in public domain software. Neither this source *
- * nor its compiled derivatives may be used in any form in a commercial product without the expressed,*
- * written consent of the author (me). *
- * *
- * Version 1.0 -- Initial Release. *
- * *
- *****************************************************************************************************/
-
- This CDEF implements a progress bar that mimics the one used by Finder. It should be extremely
- easy to use: simply set the control’s minimum and maximum to whatever values you wish, set the
- control value somewhere in-between (endpoints inclusive) and the CDEF will draw appropriately.
-
- A couple of things to note:
-
- 1) This CDEF is currently limited in its function -- I wrote it for an application I’m
- working on and didn’t worry about features I wouldn’t need (for example if you hilite it
- with value 255 (supposed to dim a control) it looks the same: my app doeesn’t need to
- dim any progress bars). If you find that extra functionality is a need, drop me a line
- via e-mail and I’ll see what I can do.
-
- 2) This was intended as an EXACT copy (visually at least) of the progress bars used in the
- Finder. As a result, the colors are hard-coded and no AuxCtlRec is ever examined. (This
- really falls under (1) above but I thought it worth mentioning seperately.)
-
- 3) I haven’t had time to test this as extensively as I would have liked, (notably I haven’t
- run it on a Mac without color quickdraw -- I believe the code to be correct but it remains
- untested). As with added features, please send bug reports via e-mail.
-
- 4) If memory serves, the progress bars used by Finder are 11 pixels tall.
-
- Legal Stuff:
-
- You know the rules: I have tried to make this as error free as possible but by using it, you take
- full responsibility for anything that goes wrong.
-
- Author:
-
- Chris Larson
- 7009 Morton Court
- Stockton, Ca 95219
-
- Internet E-Mail (Preferred) : cklarson@engr.ucdavis.edu
-